import math

value = [x for x in range(2,11)]
i = 1
factorlist = []
factor = value[i]
while i <= len(value):
    if value[i+1] % factor == 0:
        value.remove(value[i+1])
    i += 1
    



print(value)